How to change team roles via API

Hi, I’m looking to update users’ team roles via the API.

In addition to their base role, I can list their users’ team roles via the /users endpoint with include[]=teams parameter; which leads me to believe that I should be able to change this via the API.

However, team roles are absent in the schema to update a user.

Thanks.

Hi Rishav,

Yes, we do provide the ability to update team roles via the API! You can use this team endpoint. It will allow you to update existing team roles in addition to adding new members to the team.

Hannah

1 Like

Thanks for your prompt response, much appreciated!

I totally missed it since it’s listed as “Add a user to a team”, whereas I’m looking to update existing team members! Great to see that’s supported.

Thank you!

Good Morning,

Could the hyperlink please be updated, it seems to be broken now.

Kind Regards

Ashley

https://developer.pagerduty.com/api-reference/8fff69f2af386-add-a-user-to-a-team